// tcpclientDlg.h : header file
//

#if !defined(AFX_TCPCLIENTDLG_H__247D5C00_A8FA_4397_B645_3B060B0BA29A__INCLUDED_)
#define AFX_TCPCLIENTDLG_H__247D5C00_A8FA_4397_B645_3B060B0BA29A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CTcpclientDlg dialog

class CTcpclientDlg : public CDialog
{
// Construction
public:
	void oncl();
	void onrev();
	CTcpclientDlg(CWnd* pParent = NULL);	// standard constructor
    void OnOK();
// Dialog Data
	//{{AFX_DATA(CTcpclientDlg)
	enum { IDD = IDD_TCPCLIENT_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTcpclientDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CTcpclientDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();


	afx_msg void OnClose();
	afx_msg void Onconnet();
	afx_msg void Onsend();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};
class csocket:public CSocket{
public:
	void OnReceive(int i){
		dlg->onrev();
	};

	void OnClose(int i){
		dlg->oncl();
	};
	void setp(CTcpclientDlg * severdlg){

    dlg=severdlg;
	};
private:
	CTcpclientDlg *dlg;
	
	
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TCPCLIENTDLG_H__247D5C00_A8FA_4397_B645_3B060B0BA29A__INCLUDED_)
